

package ru.samgtu.wst.plugin.spider;

import ru.samgtu.wst.model.HttpUrl;


public class Link {

	private HttpUrl _url;
	private String _referer;

	/** Creates a new instance of Link */
	public Link(HttpUrl url, String referer) {
		_url = url;
		_referer = referer;
	}

	public HttpUrl getURL() {
		return _url;
	}

	public String getReferer() {
		return _referer;
	}

	@Override
	public String toString() {
		return _url.toString() + " via " + _referer;
	}
}
